# 创建时间：2025/4/27 星期日 22:33
# 创建人：李德才
a, b = 1, 2

##  and  --> 并且
print(a == 1 and b == 2)
print(a == 1 and b < 2)
print(a != 1 and b == 2)
print(a != 1 and b != 2)

##  or  --> 或者
print(a == 1 or b == 2)
print(a == 1 or b < 2)
print(a != 1 or b == 2)
print(a != 1 or b != 2)

##  not  --> 非
print(not a == 1)
print(not a != 1)

## in 与 not in
print(1 in [1, 2, 3])
print(1 not in [1, 2, 3])
s = 'hello'
print('h' in s)
print('k' not in s)
